package com.huluobo.hyj.hyjmodel.contract.register

import com.huluobo.hyj.hyjmodel.contract.BasePresenter
/**
 * 注册协议 P层负责逻辑功能，V层负责界面显示
 * */
interface RegisterContract{
    interface Presenter :BasePresenter{
        fun  register(userName:String,password:String,ConfirmPassword:String)
    }
    interface View{
        fun onUserNameError()//名字错误
        fun onPasswordError()//密码错误
        fun onConfirmPasswordError()//确认密码错误
        fun onStartregister()//开始注册
        fun onRegisterSuccess()//成功
        fun onRegisterFailed(message: String)//失败
        fun onUserExist()//失败重复用户
    }
}